<extend name="Public/base"/>


<block name="body">

    <script type="text/javascript" src="__STATIC__/jquery-1.10.2.min.js"></script>
    <![endif]-->
    <!--[if gte IE 9]><!-->
    <script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
    <!--<![endif]-->

    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>申诉详情</h2>
    </div>
    <form action="{:U('set_level')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">订单编号<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.sorder_no}" disabled>
            </div>
        </div>


        <!--<div class="form-item">-->
            <!--<label class="item-label">金额<span class="check-tips"></span></label>-->
            <!--<div class="controls">-->
                <!--<input type="text" class="text input-large" name="price" value="{$info.price}" disabled>-->
            <!--</div>-->
        <!--</div>-->

        <div class="form-item">
            <label class="item-label">是否申请退款<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="num" value="<if condition="$info.is_refund eq 1">是</if><if condition="$info.is_refund eq 0">否</if>" disabled>
            </div>
        </div>


       <div class="form-item">
             <label class="item-label">类型<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="num" value="{$info.type}" disabled>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">退货退款说明<span class="check-tips"></span></label>
            <div class="controls">
                <textarea name=""  cols="55" rows="10">{$info.explain}</textarea>
            </div>
        </div>


        <div class="form-item">
            <label class="item-label">申诉理由<span class="check-tips"></span></label>
            <div class="controls">
                <textarea name=""  cols="55" rows="10">{$info.sx_reason}</textarea>
            </div>
        </div>



        <notempty name="info['imgs']">
        <!--图片-->
        <div class="controls">
            <label class="item-label">退货退款图片</label>
            <!-- 批量上传 -->
            <!--<input type="file" id="album_img">-->
            <input type="hidden" name="pic_code" value="{$info.pic_code}" class="input_upload_all for_input"/>
            <div class="uploadpics_piclist">
                <ul class="highslide-gallery" style="overflow:hidden;width:700px;">
                    <notempty name="info['imgs']">
                        <?php
                                                 $pics=explode(',', $info['imgs']);
                                                 foreach($pics as $v){
                                                 if($v!=''){
                                                 ?>
                        <li style="position: relative; float: left; margin-right: 20px; margin-top: 5px;">
                            <a href="__ROOT__{$v|get_cover='path'}" target="_blank">
                                <img src="__ROOT__{$v|get_cover='path'}" style="width: 140px; height: 120px;"/>
                            </a>
                                                                    <span onclick="delthispic(this)" dataid="{$v}," style="">

                                                                    </span>
                        </li>
                        <?php }
                                                  }?>
                    </notempty>
                </ul>
            </div>
        </div>
        <script type="text/javascript">
            //上传图片
            /* 初始化上传插件 */
//            $("#album_img").uploadify({
//                "height": "38",
//                "swf" : "__STATIC__/uploadify/uploadify.swf",
//                "fileObjName" : "download",
//                "buttonText" : "相册",
//                "uploader" : "{:U('File/uploadPicture',array('session_id'=>session_id()))}",
//                "width" : "150",
//                'removeTimeout' : 1,
//                'fileTypeExts' : '*.jpg; *.png; *.gif;',
//                "onUploadSuccess" : uploadAll,
//                'uploadLimit' : 3,
//                'onFallback' : function() {
//                    alert('未检测到兼容版本的Flash.');
//                }
//            });
//            function uploadAll(file, data){
//                var data = $.parseJSON(data);
//                var xc = $('input[name="pic_code"]').val();
//                var strs= new Array(); //定义一数组
//                strs=xc.split(","); //字符分割
//                console.log(strs);
//
////                if(strs.length >= 4){
////                    alert("最多只能上传三张");return;
////                }
//                var src = '';
//                if(data.status){
//                    src = data.url || '__ROOT__' + data.path;
//                    var value = '<li style="position: relative; float: left; margin-right: 20px; margin-top: 5px;"><a href="'+src+'" class="highslide">' +
//                            '<img src="' + src + '" style="width: 140px; height: 120px;"/></a>' +
//                            '<span onclick="delthispic(this)" dataid="'+data.id
//
//
//
//                            +'," style="position: absolute; left: 0; bottom: 0; display: inline-block; width: 140px; height: 30px; line-height: 30px; text-align: center; background: #000; opacity: 0.6; z-index: 10; color: #fff;">' +
//                            '';
//                    $('.input_upload_all').val($('.input_upload_all').val()+data.id
//
//
//
//                            +',');
//
//                    $('.uploadpics_piclist ul').append(value);
//
//                } else {
//                    updateAlert(data.info);
//                    setTimeout(function(){
//                        $('#top-alert').find('button').click();
//                        $(that).removeClass('disabled').prop('disabled',false);
//                    },1500);
//                }
//            }
//            function delthispic(obj){
//
//
//                var dataid=$(obj).attr('dataid');
//
//                $('.input_upload_all').val($('.input_upload_all').val().replace(dataid, ""));
//
//                var aa=$(obj).parent().remove();
//                console.log(aa);
//            }
        </script>
        </notempty>

        <div class="form-item">
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">

    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('Manage/suthentic')}");
        //获取市
       
    </script>
</block>
